import QtQuick 2.15

Item {
    id:root
    property alias icon: iconItem.source
    property int index: 0
    property int value: 0
    //signal clicked(int index,int value)
    width: 42
    height: 42

    Image {
        id: iconItem
        width: 42
        height: width
        anchors.centerIn: parent
        source: "qrc:/res/navigate/light_on.png"
    }
    MouseArea{
        anchors.fill: parent
        onPressed: root.scale = 0.8
        onReleased: root.scale =1
        onClicked: navItemClicked(index,value)
    }
}
